// 协会组织
import ajax from '@/libs/ajax'

/**
 * 协会查询
 * @param {*} data 数据
 */
const API_GET_ASSOCIATION_PAGING = (data) => ajax(`/pub/association/getAssociationPaging?pageNumber=` + data.pageNumber + '&pageSize=' + data.pageSize + '&nameLike=' + data.nameLike, 'post', {})

const API_GET_ASSOCIATION_BY_ID = (id) => ajax('/pub/association/getAssociationById?id=' + id, 'post', {})

// 获取协会咨询
const API_ASSOCIATION_NEWS = (data) => ajax(`/pub/association/associationNewsByAssociationId?pageNumber=` + data.pageNumber + '&pageSize=' + data.pageSize + '&associationId=' + data.associationId, 'post', {})
const API_ASSOCIATION_NEWS_DETAIL = (id) => ajax('/pub/association/associationNewsByNewId', 'post', { newsId: id })

export {
  API_GET_ASSOCIATION_PAGING,
  API_GET_ASSOCIATION_BY_ID,
  API_ASSOCIATION_NEWS,
  API_ASSOCIATION_NEWS_DETAIL
}
